Loading...

turbine-dev@jakarta.apache.org

[Prev] Thread [Next]  |  [Prev] Date [Next]

[Turbine Wiki] Trivial Update of "Turbine2/Tutorial/Direc toryService" by newacct Apache Wiki Tue Feb 09 18:00:16 2010

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Turbine Wiki" for 
change notification.

The "Turbine2/Tutorial/DirectoryService" page has been changed by newacct.
http://wiki.apache.org/turbine/Turbine2/Tutorial/DirectoryService?action=diff&rev1=3&rev2=4

--------------------------------------------------

         * @return
         */
        public static long min(long a, long b) {
-               return a < b ? a : b;
+               return Math.min(a, b);
        }
  
        /**
@@ -1805, +1805 @@

         * @return
         */
        public static long max(long a, long b) {
-               return a > b ? a : b;
+               return Math.max(a, b);
        }
  
        /**
@@ -1816, +1816 @@

         * @return
         */
        public static int min(int a, int b) {
-               return a < b ? a : b;
+               return Math.min(a, b);
        }
  
        /**
@@ -1827, +1827 @@

         * @return
         */
        public static int max(int a, int b) {
-               return a > b ? a : b;
+               return Math.max(a, b);
        }
  
        /**
@@ -1893, +1893 @@

  
          FileInputStream fis = new FileInputStream(src);
                FileOutputStream fos = new FileOutputStream(dst);
-               byte[] buffer = new byte[min((int) src.length(), 
MAX_BUFFER_SIZE)];
+               byte[] buffer = new byte[Math.min((int) src.length(), 
MAX_BUFFER_SIZE)];
                while (fis.read(buffer) != -1)
                        fos.write(buffer);
                fis.close();

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]