findbugs: fix SF_SWITCH_NO_DEFAULT warnings

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1748090 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Javen O'Neal 2016-06-13 06:38:53 +00:00
parent 84113f3c63
commit 64ae6dc0ff
3 changed files with 10 additions and 3 deletions

View File

@ -78,6 +78,8 @@ public class HSSFHyperlink implements Hyperlink {
case LINK_DOCUMENT:
record.newDocumentLink();
break;
default:
throw new IllegalArgumentException("Invalid type: " + type);
}
}

View File

@ -355,10 +355,11 @@ public class AreaReference {
}
delimiterPos = i;
}
default:
continue;
case SPECIAL_NAME_DELIMITER:
// fall through
default:
continue; //continue the for-loop
case SPECIAL_NAME_DELIMITER:
break;
}
if(!insideDelimitedName) {
insideDelimitedName = true;

View File

@ -779,6 +779,10 @@ public class SXSSFCell implements Cell {
current=new HyperlinkProperty(value);
break;
}
default:
{
throw new IllegalArgumentException("Invalid type: " + type);
}
}
if(previous!=null)
{