[gs-commits] mupdf 1.16.1.32 java: Remove unnecessary casts causing li

[email protected] (Sebastian Rasmussen)
Newsgroups gmane.comp.printing.ghostscript.cvs
Message-ID <[email protected]>
commit 75ac0b103242f1c90de53d02a29d922bad0e4def
Author: Sebastian Rasmussen <[email protected]>
Date:   Tue Sep 3 13:34:12 2019 +0200

    java: Remove unnecessary casts causing lint warnings.

diff --git a/platform/java/example/Viewer.java b/platform/java/example/Viewer.java
index b0d6a53..a39ffd6 100644
--- a/platform/java/example/Viewer.java
+++ b/platform/java/example/Viewer.java
@@ -443,7 +443,7 @@ public class Viewer extends Frame implements WindowListener, ActionListener, Ite
 		}
 		if (source == outlineList) {
 			int i = outlineList.getSelectedIndex();
-			Outline node = (Outline)flatOutline.elementAt(i);
+			Outline node = flatOutline.elementAt(i);
 			if (node.page >= 0) {
 				if (node.page != pageNumber) {
 					pageNumber = node.page;
diff --git a/platform/java/src/com/artifex/mupdf/fitz/StructuredText.java b/platform/java/src/com/artifex/mupdf/fitz/StructuredText.java
index 5d73c5f..b1116a8 100644
--- a/platform/java/src/com/artifex/mupdf/fitz/StructuredText.java
+++ b/platform/java/src/com/artifex/mupdf/fitz/StructuredText.java
@@ -60,7 +60,7 @@ public class StructuredText
 		public void endTextBlock() {
 			TextBlock block = new TextBlock();
 			block.bbox = blockBbox;
-			block.lines = (TextLine[]) lines.toArray(new TextLine[0]);
+			block.lines = lines.toArray(new TextLine[0]);
 			blocks.add(block);
 		}
 
@@ -84,7 +84,7 @@ public class StructuredText
 		}
 
 		TextBlock[] getBlocks() {
-			return (TextBlock[]) blocks.toArray(new TextBlock[0]);
+			return blocks.toArray(new TextBlock[0]);
 		}
 	}
 

http://git.ghostscript.com/?p=mupdf.git;a=commit;h=75ac0b103242f1c90de53d02a29d922bad0e4def

--
MuPDF library
Artifex Software, Inc.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.