Skip to content

Commit

Permalink
formatting: remove unnecessary modifiers
Browse files Browse the repository at this point in the history
  • Loading branch information
tpietzsch committed Jul 23, 2024
1 parent 01b2a96 commit 66411e6
Show file tree
Hide file tree
Showing 12 changed files with 24 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,5 +46,5 @@ public interface BasicImgLoader
* view setup for which to get the {@link BasicSetupImgLoader}.
* @return {@link BasicSetupImgLoader} for the specified view setup.
*/
public BasicSetupImgLoader< ? > getSetupImgLoader( final int setupId );
BasicSetupImgLoader< ? > getSetupImgLoader( int setupId );
}
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ public interface BasicMultiResolutionImgLoader extends BasicImgLoader
* setup.
*/
@Override
public BasicMultiResolutionSetupImgLoader< ? > getSetupImgLoader( final int setupId );
BasicMultiResolutionSetupImgLoader< ? > getSetupImgLoader( int setupId );
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public interface BasicMultiResolutionSetupImgLoader< T > extends BasicSetupImgLo
* optional hints regarding how to load the image.
* @return image of type T.
*/
public RandomAccessibleInterval< T > getImage( final int timepointId, final int level, ImgLoaderHint... hints );
RandomAccessibleInterval< T > getImage( int timepointId, final int level, ImgLoaderHint... hints );

/**
* Get the sub-sampling factors, indexed by resolution level and dimension.
Expand All @@ -66,7 +66,7 @@ public interface BasicMultiResolutionSetupImgLoader< T > extends BasicSetupImgLo
*
* @return sub-sampling factors, indexed by resolution level and dimension.
*/
public double[][] getMipmapResolutions();
double[][] getMipmapResolutions();

/**
* Get the transformation from coordinates of the sub-sampled image of a a
Expand All @@ -75,12 +75,12 @@ public interface BasicMultiResolutionSetupImgLoader< T > extends BasicSetupImgLo
*
* @return array with one transformation for each mipmap level.
*/
public AffineTransform3D[] getMipmapTransforms();
AffineTransform3D[] getMipmapTransforms();

/**
* Get number of resolution levels.
*
* @return number of resolution levels.
*/
public int numMipmapLevels();
int numMipmapLevels();
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
public interface BoundedTypeBasicImgLoader< T > extends BasicImgLoader
{
@Override
public BasicSetupImgLoader< ? extends T > getSetupImgLoader( final int setupId );
BasicSetupImgLoader< ? extends T > getSetupImgLoader( int setupId );
}
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@
public interface TypedBasicImgLoader< T > extends BoundedTypeBasicImgLoader< T >
{
@Override
public BasicSetupImgLoader< T > getSetupImgLoader( final int setupId );
BasicSetupImgLoader< T > getSetupImgLoader( int setupId );
}
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

public interface XmlIoBasicImgLoader< T extends BasicImgLoader >
{
Element toXml( final T imgLoader, final File basePath );
Element toXml( T imgLoader, File basePath );

/**
* Subclasses that construct ImgLoaders that are able to read from sources
Expand All @@ -57,7 +57,7 @@ default Element toXml( final T imgLoader, final URI basePathURI )
return toXml( imgLoader, basePath );
}

T fromXml( final Element elem, final File basePath, AbstractSequenceDescription< ?, ?, ? > sequenceDescription );
T fromXml( Element elem, File basePath, AbstractSequenceDescription< ?, ?, ? > sequenceDescription );

/**
* Subclasses that construct ImgLoaders that are able to read from sources
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,21 +38,21 @@ public interface ViewTransform
*
* @return true, if this transform has a name.
*/
public boolean hasName();
boolean hasName();

/**
* Get the name of this transform.
* This is serialized to XML and can be used to identify the transformation, e.g., "z scaling".
*
* @return the name of this transform or null if it is not set.
*/
public String getName();
String getName();

/**
* A representation of this {@link ViewTransform} as a 3D {@link AffineGet}.
* This is used to concatenate {@link ViewTransform}s into a single {@link AffineTransform3D}.
*
* @return 3D affine representation of this transform.
*/
public AffineGet asAffine3D();
AffineGet asAffine3D();
}
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,10 @@ public interface ViewTransformGeneric extends ViewTransform
/**
* initialize the transform from a &lt;{@value XmlKeys#VIEWTRANSFORM_TAG}&gt; DOM element.
*/
public void init( final Element elem );
void init( Element elem );

/**
* create a &lt;{@value XmlKeys#VIEWTRANSFORM_TAG}&gt; DOM element for this {@link ViewTransform}.
*/
public Element toXml();
Element toXml();
}
2 changes: 1 addition & 1 deletion src/main/java/mpicbg/spim/data/sequence/ImgLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ public interface ImgLoader extends BasicImgLoader
* @return {@link SetupImgLoader} for the specified view setup.
*/
@Override
public SetupImgLoader< ? > getSetupImgLoader( final int setupId );
SetupImgLoader< ? > getSetupImgLoader( int setupId );
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,5 +49,5 @@ public interface MultiResolutionImgLoader extends BasicMultiResolutionImgLoader,
* setup.
*/
@Override
public MultiResolutionSetupImgLoader< ? > getSetupImgLoader( final int setupId );
MultiResolutionSetupImgLoader< ? > getSetupImgLoader( int setupId );
}
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
public interface MultiResolutionSetupImgLoader< T > extends BasicMultiResolutionSetupImgLoader< T >, SetupImgLoader< T >
{
@Override
public default RandomAccessibleInterval< FloatType > getFloatImage( final int timepointId, final boolean normalize, final ImgLoaderHint... hints )
default RandomAccessibleInterval< FloatType > getFloatImage( final int timepointId, final boolean normalize, final ImgLoaderHint... hints )
{
return getFloatImage( timepointId, 0, normalize, hints );
}
Expand All @@ -77,7 +77,7 @@ public default RandomAccessibleInterval< FloatType > getFloatImage( final int ti
* @return {@link FloatType} image
*/
@SuppressWarnings( { "unchecked", "rawtypes" } )
public default RandomAccessibleInterval< FloatType > getFloatImage( final int timepointId, final int level, final boolean normalize, final ImgLoaderHint... hints )
default RandomAccessibleInterval< FloatType > getFloatImage( final int timepointId, final int level, final boolean normalize, final ImgLoaderHint... hints )
{
final T type = getImageType();
if ( !( type instanceof RealType ) )
Expand Down Expand Up @@ -119,7 +119,7 @@ public default RandomAccessibleInterval< FloatType > getFloatImage( final int ti
}

@Override
public default Dimensions getImageSize( final int timepointId )
default Dimensions getImageSize( final int timepointId )
{
return getImageSize( timepointId, 0 );
}
Expand All @@ -135,5 +135,5 @@ public default Dimensions getImageSize( final int timepointId )
* resolution level for which to retrieve the image size.
* @return the image size, or null if it could not be determined.
*/
public Dimensions getImageSize( final int timepointId, final int level );
Dimensions getImageSize( int timepointId, int level );
}
6 changes: 3 additions & 3 deletions src/main/java/mpicbg/spim/data/sequence/SetupImgLoader.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public interface SetupImgLoader< T > extends BasicSetupImgLoader< T >
* optional hints regarding how to load the image.
* @return {@link FloatType} image
*/
public RandomAccessibleInterval< FloatType > getFloatImage( final int timepointId, boolean normalize, ImgLoaderHint... hints );
RandomAccessibleInterval< FloatType > getFloatImage( int timepointId, boolean normalize, ImgLoaderHint... hints );

/**
* Get the size of an image. If possible, load only the meta-data for the
Expand All @@ -69,7 +69,7 @@ public interface SetupImgLoader< T > extends BasicSetupImgLoader< T >
* timepoint for which to retrieve the image size.
* @return the image size, or null if it could not be determined.
*/
public Dimensions getImageSize( final int timepointId );
Dimensions getImageSize( int timepointId );

/**
* Get the voxel size of an image. If possible, load only the meta-data for
Expand All @@ -81,5 +81,5 @@ public interface SetupImgLoader< T > extends BasicSetupImgLoader< T >
* timepoint for which to retrieve the voxel size.
* @return the voxel size, or null if it could not be determined.
*/
public VoxelDimensions getVoxelSize( final int timepointId );
VoxelDimensions getVoxelSize( int timepointId );
}

0 comments on commit 66411e6

Please sign in to comment.