Skip to content

Commit b03e86f

Browse files
committed
Old typo, benign but spams the TrialPolicy log
The provider() method on a service provider has to be static. Misdeclaring this one never broke anything, as the service loader simply fell back on the constructor, but later service loader passes after the policy gets installed would cause false-alarm log entries from the constructor.
1 parent 206a963 commit b03e86f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pljava/src/main/java/org/postgresql/pljava/sqlj/Handler.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ public class Handler extends URLStreamHandlerProvider
2929
{
3030
private static final Handler INSTANCE = new Handler();
3131

32-
public URLStreamHandlerProvider provider()
32+
public static URLStreamHandlerProvider provider()
3333
{
3434
return INSTANCE;
3535
}

0 commit comments

Comments
 (0)