Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for uncheckedThrow (0.11 sec)

  1. compat/maven-resolver-provider/src/main/java/org/apache/maven/repository/internal/DefaultModelCache.java

                    uncheckedThrow(((AltRes) v).t);
                }
                return (T) v;
            }
    
            static class AltRes {
                final Throwable t;
    
                AltRes(Throwable t) {
                    this.t = t;
                }
            }
        }
    
        @SuppressWarnings("unchecked")
        static <T extends Throwable> void uncheckedThrow(Throwable t) throws T {
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 6.6K bytes
    - Viewed (0)
  2. compat/maven-model-builder/src/main/java/org/apache/maven/model/building/DefaultModelBuilder.java

            return () -> {
                try {
                    return supplier.call();
                } catch (Exception e) {
                    uncheckedThrow(e);
                    return null;
                }
            };
        }
    
        static <T extends Throwable> void uncheckedThrow(Throwable t) throws T {
            throw (T) t; // rely on vacuous cast
        }
    
        private void fireEvent(
                Model model,
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 83.6K bytes
    - Viewed (0)
Back to top