1 package org.jacorb.idl; 2 3 22 23 24 25 public final class Environment 26 { 27 30 static boolean JAVA14 = false; 31 32 static 33 { 34 String javaVer = System.getProperty ("java.version"); 35 JAVA14 = (javaVer.indexOf ("1.4") != -1); 36 } 37 38 39 47 public static org.apache.log.Priority intToPriority(int priority) 48 { 49 switch (priority) 50 { 51 case 4 : 52 return org.apache.log.Priority.DEBUG; 53 case 3 : 54 return org.apache.log.Priority.INFO; 55 case 2 : 56 return org.apache.log.Priority.WARN; 57 case 1 : 58 return org.apache.log.Priority.ERROR; 59 case 0 : 60 default : 61 return org.apache.log.Priority.FATAL_ERROR; 62 } 63 } 64 } 65 | Popular Tags |