Browse Source

satisfy codacy

tobiaskaminsky 7 years ago
parent
commit
d1bf8eb24b

+ 3 - 3
src/main/java/com/owncloud/android/ui/preview/PreviewTextFragment.java

@@ -1,4 +1,4 @@
-/**
+/*
  *   ownCloud Android client application
  *
  *   Copyright (C) 2016 ownCloud Inc.
@@ -80,7 +80,7 @@ public class PreviewTextFragment extends FileFragment {
     /**
      * Creates an empty fragment for previews.
      * <p/>
-     * MUST BE KEPT: the system uses it when tries to reinstantiate a fragment automatically
+     * MUST BE KEPT: the system uses it when tries to re-instantiate a fragment automatically
      * (for instance, when the device is turned a aside).
      * <p/>
      * DO NOT CALL IT: an {@link OCFile} and {@link Account} must be provided for a successful
@@ -218,7 +218,7 @@ public class PreviewTextFragment extends FileFragment {
             Reader reader = null;
 
             try {
-                File file = new java.io.File(location);
+                File file = new File(location);
                 reader = ReaderFactory.createReaderFromFile(file);
                 scanner = new Scanner(reader);