Skip to content

Commit

Permalink
#35 Getting rid of some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gunnarmorling committed Aug 3, 2021
1 parent 582be83 commit 379e62b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/main/java/org/moditect/jfrunit/ExpectedClass.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
*/
package org.moditect.jfrunit;

import jdk.jfr.consumer.RecordedClass;

import java.util.function.Predicate;

import jdk.jfr.consumer.RecordedClass;

public class ExpectedClass implements Predicate<RecordedClass> {
private Long id;
private Integer modifiers;
Expand All @@ -30,7 +30,7 @@ public class ExpectedClass implements Predicate<RecordedClass> {
public ExpectedClass() {
}

public ExpectedClass(Class aClass) {
public ExpectedClass(Class<?> aClass) {
this.name = aClass.getName();
ClassLoader classLoader = aClass.getClassLoader();
if (classLoader != null) {
Expand Down
2 changes: 0 additions & 2 deletions src/main/java/org/moditect/jfrunit/ExpectedEvent.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@

public class ExpectedEvent implements Predicate<RecordedEvent> {

private static final System.Logger LOGGER = System.getLogger(ExpectedEvent.class.getName());

private String name;
private Map<String, Object> withProps = new HashMap<>();
private List<String> hasProps = new ArrayList<>();
Expand Down

0 comments on commit 379e62b

Please sign in to comment.