Skip to content

Commit

Permalink
Apply spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
luca009 committed Dec 26, 2023
1 parent 5a1bf3d commit 60d33cf
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ private static class Transform {
*/
@Nullable
public static CoordinateTransform makeCoordinateTransform(NetcdfDataset ds, AttributeContainer ctv,
Formatter parseInfo, Formatter errInfo) {
Formatter parseInfo, Formatter errInfo) {
return makeCoordinateTransform(ds, ctv, parseInfo, errInfo, ds.getCoordinateAxes());
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -254,8 +254,8 @@ public CoordinateTransform build(NetcdfDataset ncd, ImmutableList<CoordinateAxis
}

// All this trouble because we need ncd before we can build.
CoordinateTransform ct =
CoordTransBuilder.makeCoordinateTransform(ncd, attributeContainer, new Formatter(), new Formatter(), coordAxes);
CoordinateTransform ct = CoordTransBuilder.makeCoordinateTransform(ncd, attributeContainer, new Formatter(),
new Formatter(), coordAxes);
if (ct != null) {
// ct.name = this.name; // LOOK why is this commented out? Dont know name until this point? Not going to
// work....
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ public static String getGeoCoordinateUnits(NetcdfDataset ds, AttributeContainer
return getGeoCoordinateUnits(ds, ctv, ds.getCoordinateAxes());
}

public static String getGeoCoordinateUnits(NetcdfDataset ds, AttributeContainer ctv, ImmutableList<CoordinateAxis> coordAxes) {
public static String getGeoCoordinateUnits(NetcdfDataset ds, AttributeContainer ctv,
ImmutableList<CoordinateAxis> coordAxes) {
String units = ctv.findAttributeString(CDM.UNITS, null);
if (units != null && !units.equals("")) {
return units;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,8 @@ private CoordinatesHelper(Builder builder, NetcdfDataset ncd) {
addAxes(ncd.getRootGroup(), axes);
coordAxes = ImmutableList.copyOf(axes);

coordTransforms =
builder.coordTransforms.stream().map(ct -> ct.build(ncd, coordAxes)).filter(Objects::nonNull).collect(Collectors.toList());
coordTransforms = builder.coordTransforms.stream().map(ct -> ct.build(ncd, coordAxes)).filter(Objects::nonNull)
.collect(Collectors.toList());

coordTransforms.addAll(builder.verticalCTBuilders.stream().map(ct -> ct.makeVerticalCT(ncd))
.filter(Objects::nonNull).collect(Collectors.toList()));
Expand Down

0 comments on commit 60d33cf

Please sign in to comment.