xmlgraphics-batik-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dvhol...@apache.org
Subject svn commit: r472965 - /xmlgraphics/batik/trunk/sources/org/apache/batik/transcoder/print/PrintTranscoder.java
Date Thu, 09 Nov 2006 16:33:17 GMT
Author: dvholten
Date: Thu Nov  9 08:33:16 2006
New Revision: 472965

URL: http://svn.apache.org/viewvc?view=rev&rev=472965
Log:
fix some 'innovative' coding....

Modified:
    xmlgraphics/batik/trunk/sources/org/apache/batik/transcoder/print/PrintTranscoder.java

Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/transcoder/print/PrintTranscoder.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/transcoder/print/PrintTranscoder.java?view=diff&rev=472965&r1=472964&r2=472965
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/transcoder/print/PrintTranscoder.java
(original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/transcoder/print/PrintTranscoder.java
Thu Nov  9 08:33:16 2006
@@ -1,6 +1,6 @@
 /*
 
-   Copyright 1999-2003  The Apache Software Foundation 
+   Copyright 1999-2003  The Apache Software Foundation
 
    Licensed under the Apache License, Version 2.0 (the "License");
    you may not use this file except in compliance with the License.
@@ -282,7 +282,7 @@
         //
         if(pageIndex >= printedInputs.size()){
             curIndex = -1;
-            if (theCtx != null) 
+            if (theCtx != null)
                 theCtx.dispose();
             userAgent.displayMessage("Done");
             return NO_SUCH_PAGE;
@@ -292,7 +292,7 @@
         // Load a new document now if we are printing a new page
         //
         if(curIndex != pageIndex){
-            if (theCtx != null) 
+            if (theCtx != null)
                 theCtx.dispose();
 
             // The following call will invoke this class' transcode
@@ -782,7 +782,7 @@
                                                 TranscodingHints.Key key){
         String str = System.getProperty(property);
         if(str != null){
-            Boolean value = new Boolean("true".equalsIgnoreCase(str));
+            Boolean value = "true".equalsIgnoreCase(str) ? Boolean.TRUE : Boolean.FALSE;
             transcoder.addTranscodingHint(key, value);
         }
     }



Mime
View raw message