From: <rb...@us...> - 2013-02-19 16:17:58
|
Revision: 8126 http://sourceforge.net/p/htmlunit/code/8126 Author: rbri Date: 2013-02-19 16:17:51 +0000 (Tue, 19 Feb 2013) Log Message: ----------- checkstyle fixes Modified Paths: -------------- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/background/DefaultJavaScriptExecutor.java trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Document.java trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Window.java trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/CookieManagerTest.java Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/background/DefaultJavaScriptExecutor.java =================================================================== --- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/background/DefaultJavaScriptExecutor.java 2013-02-19 11:18:02 UTC (rev 8125) +++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/background/DefaultJavaScriptExecutor.java 2013-02-19 16:17:51 UTC (rev 8126) @@ -135,7 +135,7 @@ /** Runs the eventLoop. */ public void run() { - boolean trace = LOG.isTraceEnabled(); + final boolean trace = LOG.isTraceEnabled(); // this has to be a multiple of 10ms // otherwise the VM has to fight with the OS to get such small periods final long sleepInterval = 10; Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Document.java =================================================================== --- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Document.java 2013-02-19 11:18:02 UTC (rev 8125) +++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Document.java 2013-02-19 16:17:51 UTC (rev 8126) @@ -192,7 +192,7 @@ // IE ignores designMode changes for documents that aren't in frames. return; } - + if ("on".equalsIgnoreCase(mode)) { designMode_ = "On"; } Modified: trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Window.java =================================================================== --- trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Window.java 2013-02-19 11:18:02 UTC (rev 8125) +++ trunk/htmlunit/src/main/java/com/gargoylesoftware/htmlunit/javascript/host/Window.java 2013-02-19 16:17:51 UTC (rev 8126) @@ -1593,7 +1593,7 @@ style = new ComputedCSSStyleDeclaration(original); final StyleSheetList sheets = ((HTMLDocument) document_).getStyleSheets(); - boolean trace = LOG.isTraceEnabled(); + final boolean trace = LOG.isTraceEnabled(); for (int i = 0; i < sheets.getLength(); i++) { final CSSStyleSheet sheet = (CSSStyleSheet) sheets.item(i); if (sheet.isActive()) { Modified: trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/CookieManagerTest.java =================================================================== --- trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/CookieManagerTest.java 2013-02-19 11:18:02 UTC (rev 8125) +++ trunk/htmlunit/src/test/java/com/gargoylesoftware/htmlunit/CookieManagerTest.java 2013-02-19 16:17:51 UTC (rev 8126) @@ -184,7 +184,6 @@ driver.get(URL_SECOND.toExternalForm()); - // strange check, but there is no order final String lastCookies = getMockWebConnection().getLastAdditionalHeaders().get("Cookie"); assertEquals(26, lastCookies.length()); |