-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
70e6751
commit 0dab04a
Showing
6 changed files
with
129 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright (c) 2018 Minecrell (https://github.com/Minecrell) | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which accompanies this distribution, | ||
* and is available at https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
|
||
class OverrideChild extends OverrideParent<String> { | ||
|
||
@Override | ||
public String abc() { | ||
return "Hello, World!"; | ||
} | ||
|
||
@Override | ||
public String bcd() { | ||
return "Hello, World!"; | ||
} | ||
|
||
@Override | ||
public void cde(final String abc) { | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright (c) 2018 Minecrell (https://github.com/Minecrell) | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which accompanies this distribution, | ||
* and is available at https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
|
||
class OverrideParent<T> { | ||
|
||
public Object abc() { | ||
return null; | ||
} | ||
|
||
public T bcd() { | ||
return null; | ||
} | ||
|
||
public void cde(final T abc) { | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
/* | ||
* Copyright (c) 2018 Minecrell (https://github.com/Minecrell) | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which accompanies this distribution, | ||
* and is available at https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
|
||
class OverrideChild extends OverrideParent<String> { | ||
|
||
@Override | ||
public String get() { | ||
return "Hello, World!"; | ||
} | ||
|
||
@Override | ||
public String fetch() { | ||
return "Hello, World!"; | ||
} | ||
|
||
@Override | ||
public void set(final String abc) { | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/* | ||
* Copyright (c) 2018 Minecrell (https://github.com/Minecrell) | ||
* | ||
* This program and the accompanying materials are made available under the | ||
* terms of the Eclipse Public License 2.0 which accompanies this distribution, | ||
* and is available at https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
*/ | ||
|
||
class OverrideParent { | ||
|
||
public Object get() { | ||
return null; | ||
} | ||
|
||
public T fetch() { | ||
return null; | ||
} | ||
|
||
public void set(final T abc) { | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,10 @@ | ||
# Test 1. Simple remaps | ||
test/ObfClass Core | ||
name firstName | ||
name ()Ljava/lang/String; firstName | ||
|
||
# Test 2. Remap overrides | ||
OverrideParent OverrideParent | ||
abc ()Ljava/lang/Object; get | ||
bcd ()Ljava/lang/Object; fetch | ||
cde (Ljava/lang/Object;)V set |