FileRules
SUGGESTION
Simplification
Suppression
Disable all rules by adding
-XepOpt:Refaster:NamePattern=^(?!FileRules\$).*
as compiler argument.
Table of contents
PathOfUri
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("PathOfUri")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!FileRules\$PathOfUri).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
PathOfString
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("PathOfString")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!FileRules\$PathOfString).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
PathInstance
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("PathInstance")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!FileRules\$PathInstance).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
FilesReadStringWithCharset
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("FilesReadStringWithCharset")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!FileRules\$FilesReadStringWithCharset).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
FilesReadString
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("FilesReadString")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!FileRules\$FilesReadString).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
FilesCreateTempFileToFile
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("FilesCreateTempFileToFile")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!FileRules\$FilesCreateTempFileToFile).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.
FilesCreateTempFileInCustomDirectoryToFile
SUGGESTION
Simplification
Suppression
Suppress false positives by adding the suppression annotation
@SuppressWarnings("FilesCreateTempFileInCustomDirectoryToFile")
to the enclosing element.Disable this rule by adding
-XepOpt:Refaster:NamePattern=^(?!FileRules\$FilesCreateTempFileInCustomDirectoryToFile).*
as compiler argument.
Samples
Shows the difference in example code before and after the Refaster rule is applied.