Skip to content

Commit

Permalink
Fixed some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
hurdlea committed May 8, 2023
1 parent 7d6b4e1 commit eacbbc0
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
7 changes: 7 additions & 0 deletions .idea/groovyc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 1 addition & 2 deletions src/au/com/foxtel/product/subtitleTools/CaptionLine.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ class CaptionLine {
}
break

case 0x20..0x7e:
case 0xa0..0xff: // regular characters
case {(0x20..0x7e).contains(it) || (0xa0..0xff).contains(it)}: // regular characters
String chr = mapCharacter((int) it & 0xff)
format.text += chr
break
Expand Down
4 changes: 2 additions & 2 deletions src/au/com/foxtel/product/subtitleTools/LineFormat.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ class LineFormat {
String colour = "white"
String background = "black"
String text = ""
def String toString()

String toString()
{
"[Colour:" + this.colour + " Background:" + this.background + " Text:" + this.text + "]"
}
Expand Down
2 changes: 1 addition & 1 deletion src/au/com/foxtel/product/subtitleTools/stlTtiBlock.groovy
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class StlTtiBlock {
byte[] textField
int timecodeOffset

public StlTtiBlock(int offset) {
StlTtiBlock(int offset) {
this.timecodeOffset = offset
}

Expand Down

0 comments on commit eacbbc0

Please sign in to comment.