Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 95 for if (0.11 sec)

  1. src/main/java/org/codelibs/core/sql/StatementUtil.java

         * </p>
         *
         * @param statement
         *            {@link Statement}
         * @see Statement#close()
         */
        public static void close(final Statement statement) {
            if (statement == null) {
                return;
            }
            try {
                statement.close();
            } catch (final SQLException e) {
                logger.log(format("ECL0017", e.getMessage()), e);
            }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 5.2K bytes
    - Viewed (0)
  2. src/main/java/org/codelibs/core/convert/ShortConversionUtil.java

            if (o == null) {
                return null;
            } else if (o instanceof Short) {
                return (Short) o;
            } else if (o instanceof Number) {
                return ((Number) o).shortValue();
            } else if (o instanceof String) {
                return toShort((String) o);
            } else if (o instanceof java.util.Date) {
                if (pattern != null) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.8K bytes
    - Viewed (0)
  3. src/main/java/org/codelibs/core/text/Tokenizer.java

         */
        public int nextToken() {
            initVal();
            if (processEOF()) {
                return ttype;
            }
            if (processWhitespace()) {
                return ttype;
            }
            if (processWord()) {
                return ttype;
            }
            if (processQuote()) {
                return ttype;
            }
            if (processOrdinary()) {
                return ttype;
            }
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 8.6K bytes
    - Viewed (0)
  4. src/main/java/org/codelibs/core/convert/FloatConversionUtil.java

            if (o == null) {
                return null;
            } else if (o instanceof Float) {
                return (Float) o;
            } else if (o instanceof Number) {
                return new Float(((Number) o).floatValue());
            } else if (o instanceof String) {
                return toFloat((String) o);
            } else if (o instanceof java.util.Date) {
                if (pattern != null) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 3.6K bytes
    - Viewed (0)
  5. src/main/java/org/codelibs/core/convert/TimeConversionUtil.java

            if (src == null) {
                return null;
            }
            if (src.getClass() == Date.class) {
                return (Date) src;
            }
            if (src instanceof Date) {
                return new Date(((Date) src).getTime());
            }
            if (src instanceof Calendar) {
                return new Date(((Calendar) src).getTimeInMillis());
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 21.2K bytes
    - Viewed (0)
  6. src/main/java/org/codelibs/core/misc/AssertionUtil.java

         */
        public static void assertArgumentArrayIndex(final String argName, final int argValue, final int arraySize) {
            if (argValue < 0) {
                throw new ClIllegalArgumentException(argName, "ECL0014", asArray(argName));
            }
            if (argValue >= arraySize) {
                throw new ClIllegalArgumentException(argName, "ECL0015", asArray(argName, arraySize));
            }
        }
    
        /**
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 12.5K bytes
    - Viewed (0)
  7. .github/workflows/codeql-analysis.yml

          with:
            # We must fetch at least the immediate parents so that if this is
            # a pull request then we can checkout the head.
            fetch-depth: 2
    
        # If this run was triggered by a pull request event, then checkout
        # the head of the pull request instead of the merge commit.
        - run: git checkout HEAD^2
          if: ${{ github.event_name == 'pull_request' }}
    
        # Initializes the CodeQL tools for scanning.
    Others
    - Registered: Fri Mar 01 20:58:10 GMT 2024
    - Last Modified: Wed Jan 19 23:41:02 GMT 2022
    - 2.5K bytes
    - Viewed (1)
  8. src/main/java/org/codelibs/core/message/MessageFormatter.java

        protected static String getPattern(final String messageCode) {
            if (isEmpty(messageCode)) {
                return null;
            }
            final ResourceBundle resourceBundle = getResourceBundle(getSystemName(messageCode));
            if (resourceBundle == null) {
                return null;
            }
    
            final int length = messageCode.length();
            if (length > CODE_NUMBER_LENGTH) {
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 5.6K bytes
    - Viewed (0)
  9. src/main/java/org/codelibs/core/beans/impl/ConstructorDescImpl.java

            assertArgumentArrayIndex("index", index, parameterTypes.length);
    
            if (!Collection.class.isAssignableFrom(parameterTypes[index]) || !isParameterized(index)) {
                return null;
            }
            final ParameterizedClassDesc pcd = parameterizedClassDescs[index].getArguments()[0];
            if (pcd == null) {
                return null;
            }
            return pcd.getRawClass();
        }
    
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 5.1K bytes
    - Viewed (0)
  10. src/main/java/org/codelibs/core/log/Logger.java

         * @return {@link Logger}
         */
        public static synchronized Logger getLogger(final Class<?> clazz) {
            assertArgumentNotNull("clazz", clazz);
    
            if (!initialized) {
                initialize();
            }
            Logger logger = loggers.get(clazz);
            if (logger == null) {
                logger = new Logger(clazz);
                loggers.put(clazz, logger);
            }
            return logger;
        }
    
        /**
    Java
    - Registered: Fri May 03 20:58:11 GMT 2024
    - Last Modified: Thu Mar 07 01:59:08 GMT 2024
    - 13.2K bytes
    - Viewed (0)
Back to top