Skip to content

Commit 5e07b60

Browse files
Eliminated the unnecessary method NGResourceLoader.bytesForResource()
1 parent 0bcddae commit 5e07b60

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

ng-appserver/src/main/java/ng/appserver/resources/NGResourceLoader.java

+1-8
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public void addResourceSource( final String namespace, final ResourceType resour
4343
/**
4444
* @return The named resource if it exists, an empty optional if not found
4545
*/
46-
private Optional<byte[]> readResource( final String namespace, final ResourceType resourceType, String resourcePath ) {
46+
public Optional<byte[]> bytesForResource( final String namespace, final ResourceType resourceType, String resourcePath ) {
4747
Objects.requireNonNull( namespace );
4848
Objects.requireNonNull( resourceType );
4949
Objects.requireNonNull( resourcePath );
@@ -79,13 +79,6 @@ private Optional<byte[]> readResource( final String namespace, final ResourceTyp
7979
return Optional.empty();
8080
}
8181

82-
/**
83-
* @return The named resource if it exists, an empty optional if not found
84-
*/
85-
public Optional<byte[]> bytesForResource( final String namespace, final ResourceType type, final String resourcePath ) {
86-
return readResource( namespace, type, resourcePath );
87-
}
88-
8982
/**
9083
* Represents a source of resources of any type
9184
*/

0 commit comments

Comments
 (0)