Skip to content

Commit

Permalink
Do not use @OverRide when implementing methods from interfaces.
Browse files Browse the repository at this point in the history
This behavior is only allowed starting with JDK 1.6
  • Loading branch information
kcooney committed Dec 8, 2016
1 parent edcb822 commit 8baae6e
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class FakeRuntimeMXBean implements RuntimeMXBean {
*
* <p>Always returns an empty list.
*/
@Override
public List<String> getInputArguments() {
return Collections.emptyList();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ final class FakeThreadMXBean implements ThreadMXBean {
*
* <p>Always throws an {@link UnsupportedOperationException}
*/
@Override
public long getThreadCpuTime(long id) {
throw new UnsupportedOperationException();
}
Expand All @@ -20,7 +19,6 @@ public long getThreadCpuTime(long id) {
*
* <p>Always returns false.
*/
@Override
public boolean isThreadCpuTimeSupported() {
return false;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ private static final class Holder {
* {@inheritDoc}
*/
@SuppressWarnings("unchecked")
@Override
public List<String> getInputArguments() {
if (Holder.getInputArgumentsMethod != null) {
try {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ private static final class Holder {
/**
* {@inheritDoc}
*/
@Override
public long getThreadCpuTime(long id) {
if (Holder.getThreadCpuTimeMethod != null) {
Exception error = null;
Expand All @@ -72,7 +71,6 @@ public long getThreadCpuTime(long id) {
/**
* {@inheritDoc}
*/
@Override
public boolean isThreadCpuTimeSupported() {
if (Holder.isThreadCpuTimeSupportedMethod != null) {
try {
Expand Down

0 comments on commit 8baae6e

Please sign in to comment.