diff options
author | Sven Gothel <[email protected]> | 2014-07-08 23:15:33 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2014-07-08 23:15:33 +0200 |
commit | 27115b5f050e881f959a33c04e7d3988bfe676bf (patch) | |
tree | 94668f339d3de88be355a20bd541c1aa4bb7403d /src/jogl/classes/jogamp/opengl | |
parent | a2b75f52db38be223261cd378a4bc330cc2d3ede (diff) |
Findbugs: Use inner static class where possible
Diffstat (limited to 'src/jogl/classes/jogamp/opengl')
3 files changed, 10 insertions, 10 deletions
diff --git a/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXPbufferCGLDrawable.java b/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXPbufferCGLDrawable.java index 6017c94e4..bc88d9ca9 100644 --- a/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXPbufferCGLDrawable.java +++ b/src/jogl/classes/jogamp/opengl/macosx/cgl/MacOSXPbufferCGLDrawable.java @@ -175,7 +175,7 @@ public class MacOSXPbufferCGLDrawable extends MacOSXCGLDrawable { } // NSOpenGLPixelBuffer implementation - class NSOpenGLImpl implements GLBackendImpl { + static class NSOpenGLImpl implements GLBackendImpl { @Override public long create(final int renderTarget, final int internalFormat, final int width, final int height) { return CGL.createPBuffer(renderTarget, internalFormat, width, height); @@ -188,7 +188,7 @@ public class MacOSXPbufferCGLDrawable extends MacOSXCGLDrawable { } // CGL implementation - class CGLImpl implements GLBackendImpl { + static class CGLImpl implements GLBackendImpl { @Override public long create(final int renderTarget, final int internalFormat, final int width, final int height) { final PointerBuffer pbuffer = PointerBuffer.allocateDirect(1); diff --git a/src/jogl/classes/jogamp/opengl/util/jpeg/JPEGDecoder.java b/src/jogl/classes/jogamp/opengl/util/jpeg/JPEGDecoder.java index f73de75c5..e3e43b30c 100644 --- a/src/jogl/classes/jogamp/opengl/util/jpeg/JPEGDecoder.java +++ b/src/jogl/classes/jogamp/opengl/util/jpeg/JPEGDecoder.java @@ -373,7 +373,7 @@ public class JPEGDecoder { } /** The JPEG encoded components */ - class ComponentIn { + static class ComponentIn { final int h, v; /** index to frame.qtt[] */ final int qttIdx; @@ -414,7 +414,7 @@ public class JPEGDecoder { } /** The decoded components */ - class ComponentOut { + static class ComponentOut { private final ArrayList<byte[]> lines; final float scaleX; final float scaleY; @@ -760,7 +760,7 @@ public class JPEGDecoder { frame.mcusPerColumn = mcusPerColumn; } - private static class BinObjIdxed { + static class BinObjIdxed { final BinObj children; byte index; BinObjIdxed() { @@ -768,7 +768,7 @@ public class JPEGDecoder { this.index = 0; } } - private static class BinObj { + static class BinObj { final boolean isValue; final BinObj[] tree; final byte b; @@ -827,7 +827,7 @@ public class JPEGDecoder { } private final Output output = new Output(); - private static class Output { + static class Output { private int blocksPerLine; private int blocksPerColumn; private int samplesPerLine; @@ -1023,11 +1023,11 @@ public class JPEGDecoder { } } - private static interface DecoderFunction { + static interface DecoderFunction { void decode(ComponentIn component, int[] zz) throws IOException; } - private class Decoder { + class Decoder { // private int precision; // private int samplesPerLine; // private int scanLines; diff --git a/src/jogl/classes/jogamp/opengl/x11/glx/X11ExternalGLXDrawable.java b/src/jogl/classes/jogamp/opengl/x11/glx/X11ExternalGLXDrawable.java index 2076ce454..d2f967a5c 100644 --- a/src/jogl/classes/jogamp/opengl/x11/glx/X11ExternalGLXDrawable.java +++ b/src/jogl/classes/jogamp/opengl/x11/glx/X11ExternalGLXDrawable.java @@ -104,7 +104,7 @@ public class X11ExternalGLXDrawable extends X11GLXDrawable { throw new GLException("Should not call this"); } - class Context extends X11GLXContext { + static class Context extends X11GLXContext { Context(final X11GLXDrawable drawable, final GLContext shareWith) { super(drawable, shareWith); } |