Skip to content

Commit

Permalink
[wokdlhX3] Suppress unused warnings for remaining code only used from…
Browse files Browse the repository at this point in the history
… extended

These usages are not as straight forward to get rid of/extract to extended.
  • Loading branch information
Lojjs committed Dec 9, 2022
1 parent d2442f0 commit f4b9217
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions common/src/main/java/apoc/ApocExtensionFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ public interface Dependencies {
AvailabilityGuard availabilityGuard();
DatabaseManagementService databaseManagementService();
ApocConfig apocConfig();
@SuppressWarnings("unused") // used from extended
GlobalProcedures globalProceduresRegistry();
RegisterComponentFactory.RegisterComponentLifecycle registerComponentLifecycle();
Pools pools();
Expand Down
1 change: 1 addition & 0 deletions common/src/main/java/apoc/RegisterComponentFactory.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ public void addResolver(String databaseNamme, Class clazz, Object instance) {
classInstanceMap.put(databaseNamme, instance);
}

@SuppressWarnings("unused") // used from extended
public Map<Class, Map<String, Object>> getResolvers() {
return resolvers;
}
Expand Down
1 change: 1 addition & 0 deletions common/src/main/java/apoc/result/VirtualNode.java
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ public VirtualNode(Label[] labels, Map<String, Object> props) {
this.elementId = null;
}

@SuppressWarnings("unused") // used from extended
public VirtualNode(long nodeId, Label[] labels, Map<String, Object> props) {
this.id = nodeId;
addLabels(asList(labels));
Expand Down
1 change: 1 addition & 0 deletions common/src/main/java/apoc/result/VirtualRelationship.java
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ public VirtualRelationship(Node startNode, Node endNode, RelationshipType type)
this.type = type;
}

@SuppressWarnings("unused") // used from extended
public VirtualRelationship(long id, Node startNode, Node endNode, RelationshipType type, Map<String, Object> props) {
validateNodes(startNode, endNode);
this.id = id;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@

import static java.net.HttpURLConnection.HTTP_OK;

@SuppressWarnings("unused") // used from extended
public class GoogleCloudStorageContainerExtension extends GenericContainer<GoogleCloudStorageContainerExtension> {

public GoogleCloudStorageContainerExtension() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import java.time.Duration;

@SuppressWarnings("unused") // used from extended
public class MySQLContainerExtension extends MySQLContainer<MySQLContainerExtension> {

public MySQLContainerExtension() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ public Session getSession() {
return session;
}

@SuppressWarnings("unused") // used from extended
public Driver getDriver() {
return driver;
}
Expand Down

0 comments on commit f4b9217

Please sign in to comment.