Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 1 of 1 for toIntExact (0.1 sec)

  1. platforms/jvm/language-java/src/main/java/org/gradle/api/internal/tasks/compile/DiagnosticToProblemListener.java

         * @return either the clamped value, or {@link Diagnostic#NOPOS}
         */
        private static int clampLocation(long value) {
            if (value > Integer.MAX_VALUE) {
                return Math.toIntExact(Diagnostic.NOPOS);
            } else {
                return (int) value;
            }
        }
    
        private static String getPath(JavaFileObject fileObject) {
            return fileObject.getName();
        }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Jun 06 06:17:43 UTC 2024
    - 11.5K bytes
    - Viewed (0)
Back to top