Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Commit

Permalink
make JavaExecTest compile on jdk7
Browse files Browse the repository at this point in the history
jdk7 added method to RuntimeMXBean interface
  • Loading branch information
PapaJoltOmega committed Mar 11, 2014
1 parent efcf210 commit 9308073
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/com/google/enterprise/adaptor/JavaExecTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
import java.util.Collections;
import java.util.List;
import java.util.Map;
import javax.management.ObjectName;

/** Unit tests for {@link JavaExec}. */
public class JavaExecTest {
Expand Down Expand Up @@ -240,5 +241,10 @@ public String getVmVersion() {
public boolean isBootClassPathSupported() {
throw new UnsupportedOperationException();
}

/* @Override in Java 7 */
public ObjectName getObjectName() {
throw new UnsupportedOperationException();
}
}
}

0 comments on commit 9308073

Please sign in to comment.