Skip to content

Commit

Permalink
Indentation fix
Browse files Browse the repository at this point in the history
Signed-off-by: Benjamin Gilbert <[email protected]>
  • Loading branch information
bgilbert committed Apr 14, 2024
1 parent 138ba9a commit dabbd6b
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions org/openslide/OpenSlideFFM.java
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ static String openslide_detect_vendor(String filename) {
ret = (MemorySegment) detect_vendor.invokeExact(
arena.allocateFrom(filename));
} catch (Throwable ex) {
throw new AssertionError("Invalid call", ex);
throw new AssertionError("Invalid call", ex);
}
if (ret.equals(MemorySegment.NULL)) {
return null;
Expand All @@ -122,7 +122,7 @@ static MemorySegment openslide_open(String filename) {
ret = (MemorySegment) open.invokeExact(
arena.allocateFrom(filename));
} catch (Throwable ex) {
throw new AssertionError("Invalid call", ex);
throw new AssertionError("Invalid call", ex);
}
if (ret.equals(MemorySegment.NULL)) {
return null;
Expand All @@ -137,7 +137,7 @@ static int openslide_get_level_count(MemorySegment osr) {
try {
return (int) get_level_count.invokeExact(osr);
} catch (Throwable ex) {
throw new AssertionError("Invalid call", ex);
throw new AssertionError("Invalid call", ex);
}
}

Expand All @@ -153,7 +153,7 @@ static void openslide_get_level_dimensions(MemorySegment osr, int level,
try {
get_level_dimensions.invokeExact(osr, level, w, h);
} catch (Throwable ex) {
throw new AssertionError("Invalid call", ex);
throw new AssertionError("Invalid call", ex);
}
dim[0] = w.get(JAVA_LONG, 0);
dim[1] = h.get(JAVA_LONG, 0);
Expand All @@ -167,7 +167,7 @@ static double openslide_get_level_downsample(MemorySegment osr, int level) {
try {
return (double) get_level_downsample.invokeExact(osr, level);
} catch (Throwable ex) {
throw new AssertionError("Invalid call", ex);
throw new AssertionError("Invalid call", ex);
}
}

Expand All @@ -182,7 +182,7 @@ static void openslide_read_region(MemorySegment osr, int dest[],
try {
read_region.invokeExact(osr, buf, x, y, level, w, h);
} catch (Throwable ex) {
throw new AssertionError("Invalid call", ex);
throw new AssertionError("Invalid call", ex);
}
MemorySegment.copy(buf, JAVA_INT, 0, dest, 0, dest.length);
}
Expand All @@ -195,7 +195,7 @@ static void openslide_close(MemorySegment osr) {
try {
close.invokeExact(osr);
} catch (Throwable ex) {
throw new AssertionError("Invalid call", ex);
throw new AssertionError("Invalid call", ex);
}
}

Expand All @@ -207,7 +207,7 @@ static String openslide_get_error(MemorySegment osr) {
try {
ret = (MemorySegment) get_error.invokeExact(osr);
} catch (Throwable ex) {
throw new AssertionError("Invalid call", ex);
throw new AssertionError("Invalid call", ex);
}
if (ret.equals(MemorySegment.NULL)) {
return null;
Expand All @@ -223,7 +223,7 @@ static String[] openslide_get_property_names(MemorySegment osr) {
try {
ret = (MemorySegment) get_property_names.invokeExact(osr);
} catch (Throwable ex) {
throw new AssertionError("Invalid call", ex);
throw new AssertionError("Invalid call", ex);
}
return segment_to_string_array(ret);
}
Expand All @@ -240,7 +240,7 @@ static String openslide_get_property_value(MemorySegment osr, String name) {
ret = (MemorySegment) get_property_value.invokeExact(osr,
arena.allocateFrom(name));
} catch (Throwable ex) {
throw new AssertionError("Invalid call", ex);
throw new AssertionError("Invalid call", ex);
}
if (ret.equals(MemorySegment.NULL)) {
return null;
Expand All @@ -256,7 +256,7 @@ static String[] openslide_get_associated_image_names(MemorySegment osr) {
try {
ret = (MemorySegment) get_associated_image_names.invokeExact(osr);
} catch (Throwable ex) {
throw new AssertionError("Invalid call", ex);
throw new AssertionError("Invalid call", ex);
}
return segment_to_string_array(ret);
}
Expand All @@ -277,7 +277,7 @@ static void openslide_get_associated_image_dimensions(MemorySegment osr,
get_associated_image_dimensions.invokeExact(osr,
arena.allocateFrom(name), w, h);
} catch (Throwable ex) {
throw new AssertionError("Invalid call", ex);
throw new AssertionError("Invalid call", ex);
}
dim[0] = w.get(JAVA_LONG, 0);
dim[1] = h.get(JAVA_LONG, 0);
Expand All @@ -299,7 +299,7 @@ static void openslide_read_associated_image(MemorySegment osr, String name,
read_associated_image.invokeExact(osr, arena.allocateFrom(name),
buf);
} catch (Throwable ex) {
throw new AssertionError("Invalid call", ex);
throw new AssertionError("Invalid call", ex);
}
MemorySegment.copy(buf, JAVA_INT, 0, dest, 0, dest.length);
}
Expand All @@ -313,7 +313,7 @@ static String openslide_get_version() {
try {
ret = (MemorySegment) get_version.invokeExact();
} catch (Throwable ex) {
throw new AssertionError("Invalid call", ex);
throw new AssertionError("Invalid call", ex);
}
return ret.getString(0);
}
Expand Down

0 comments on commit dabbd6b

Please sign in to comment.