Skip to content

Commit

Permalink
grizzly: explicitly disallow instance of GrizzlyMemoryManager
Browse files Browse the repository at this point in the history
Acked-by: Paul Millar
Target: master
  • Loading branch information
kofemann committed Jan 7, 2019
1 parent adef1a1 commit 3d89c3e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ public class GrizzlyMemoryManager {
private static final MemoryManager GRIZZLY_MM =
MemoryManager.DEFAULT_MEMORY_MANAGER;

// Utility class
private GrizzlyMemoryManager() {}

public static Buffer allocate(int size) {
return GRIZZLY_MM.allocate(size);
}
Expand Down

0 comments on commit 3d89c3e

Please sign in to comment.