valerybokov commented on PR #107: URL: https://github.com/apache/pdfbox/pull/107#issuecomment-1186575091
> Heh! I believe, the De Morgan's law works. I tried to interpolate this code to a little test. Tell me, please, where is bug? import java.util.ArrayList; public class HelloWorld{ public static void main(String []args){ System.out.println(v1() + " " + v2()); } static boolean v1(){ ArrayList<Integer>list = new ArrayList<Integer>(); // list.add(2); list.add(4); // list.add(5); if (!list.contains(2) && !list.contains(4) && !list.contains(5)) return false; return true; } static boolean v2(){ ArrayList<Integer>list = new ArrayList<Integer>(); // list.add(2); list.add(4); // list.add(5); return list.contains(2) || list.contains(4) || list.contains(5); } } -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@pdfbox.apache.org For additional commands, e-mail: dev-h...@pdfbox.apache.org