aboutsummaryrefslogtreecommitdiff
path: root/src/eclipseAgent/lombok/launch
diff options
context:
space:
mode:
authorRawi01 <Rawi01@users.noreply.github.com>2021-02-07 12:01:34 +0100
committerRawi01 <Rawi01@users.noreply.github.com>2021-02-07 12:01:34 +0100
commita62ffaa280acd09892755897c1c97f5d06f02be5 (patch)
tree38a20fcfda2eb52e2401f9961cdb587cda470c40 /src/eclipseAgent/lombok/launch
parented4ced1a3bc694f9a9903b5a15b2641236ff2f92 (diff)
downloadlombok-a62ffaa280acd09892755897c1c97f5d06f02be5.tar.gz
lombok-a62ffaa280acd09892755897c1c97f5d06f02be5.tar.bz2
lombok-a62ffaa280acd09892755897c1c97f5d06f02be5.zip
Move eclipse only code for Delegate into own class
Diffstat (limited to 'src/eclipseAgent/lombok/launch')
-rwxr-xr-xsrc/eclipseAgent/lombok/launch/PatchFixesHider.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/eclipseAgent/lombok/launch/PatchFixesHider.java b/src/eclipseAgent/lombok/launch/PatchFixesHider.java
index e2d266c5..afdfdb95 100755
--- a/src/eclipseAgent/lombok/launch/PatchFixesHider.java
+++ b/src/eclipseAgent/lombok/launch/PatchFixesHider.java
@@ -1,5 +1,5 @@
/*
- * Copyright (C) 2010-2019 The Project Lombok Authors.
+ * Copyright (C) 2010-2021 The Project Lombok Authors.
*
* Permission is hereby granted, free of charge, to any person obtaining a copy
* of this software and associated documentation files (the "Software"), to deal
@@ -207,20 +207,20 @@ final class PatchFixesHider {
/** Contains patch code to support {@code @Delegate} */
public static final class Delegate {
private static final Method HANDLE_DELEGATE_FOR_TYPE;
- private static final Method GET_CHILDREN;
+ private static final Method ADD_GENERATED_DELEGATE_METHODS;
static {
Class<?> shadowed = Util.shadowLoadClass("lombok.eclipse.agent.PatchDelegatePortal");
HANDLE_DELEGATE_FOR_TYPE = Util.findMethod(shadowed, "handleDelegateForType", Object.class);
- GET_CHILDREN = Util.findMethod(shadowed, "getChildren", Object.class, Object.class);
+ ADD_GENERATED_DELEGATE_METHODS = Util.findMethod(shadowed, "addGeneratedDelegateMethods", Object.class, Object.class);
}
public static boolean handleDelegateForType(Object classScope) {
return (Boolean) Util.invokeMethod(HANDLE_DELEGATE_FOR_TYPE, classScope);
}
- public static Object[] getChildren(Object returnValue, Object javaElement) {
- return (Object[]) Util.invokeMethod(GET_CHILDREN, returnValue, javaElement);
+ public static Object[] addGeneratedDelegateMethods(Object returnValue, Object javaElement) {
+ return (Object[]) Util.invokeMethod(ADD_GENERATED_DELEGATE_METHODS, returnValue, javaElement);
}
}