mirror of https://github.com/apache/poi.git
try to javadoc more unsupported methods
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1914791 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
c7324182ad
commit
7e5e9fcc62
|
@ -45,6 +45,7 @@ public interface FontFacet {
|
|||
* Set the font weight
|
||||
*
|
||||
* @param weight the font weight
|
||||
* @throws UnsupportedOperationException can return UnsupportedOperationException when FontFacet is read-only
|
||||
*/
|
||||
default void setWeight(int weight) {
|
||||
throw new UnsupportedOperationException("FontFacet is read-only.");
|
||||
|
@ -61,6 +62,7 @@ public interface FontFacet {
|
|||
* Set the font posture
|
||||
*
|
||||
* @param italic {@code true} for italic, {@code false} for regular
|
||||
* @throws UnsupportedOperationException can return UnsupportedOperationException when FontFacet is read-only
|
||||
*/
|
||||
default void setItalic(boolean italic) {
|
||||
throw new UnsupportedOperationException("FontFacet is read-only.");
|
||||
|
|
|
@ -69,6 +69,7 @@ public interface FontInfo {
|
|||
*
|
||||
* @param typeface the full name of the font, when {@code null} removes the font definition -
|
||||
* removal is implementation specific
|
||||
* @throws UnsupportedOperationException can return UnsupportedOperationException when FontInfo is read-only
|
||||
*/
|
||||
default void setTypeface(String typeface) {
|
||||
throw new UnsupportedOperationException("FontInfo is read-only.");
|
||||
|
@ -85,6 +86,7 @@ public interface FontInfo {
|
|||
* Sets the charset
|
||||
*
|
||||
* @param charset the charset
|
||||
* @throws UnsupportedOperationException can return UnsupportedOperationException when FontInfo is read-only
|
||||
*/
|
||||
default void setCharset(FontCharset charset) {
|
||||
throw new UnsupportedOperationException("FontInfo is read-only.");
|
||||
|
@ -101,6 +103,7 @@ public interface FontInfo {
|
|||
* Sets the font family class
|
||||
*
|
||||
* @param family the font family class
|
||||
* @throws UnsupportedOperationException can return UnsupportedOperationException when FontInfo is read-only
|
||||
*/
|
||||
default void setFamily(FontFamily family) {
|
||||
throw new UnsupportedOperationException("FontInfo is read-only.");
|
||||
|
@ -134,6 +137,7 @@ public interface FontInfo {
|
|||
/**
|
||||
* Set the panose in binary form
|
||||
* @param panose the panose bytes
|
||||
* @throws UnsupportedOperationException can return UnsupportedOperationException when FontInfo is read-only
|
||||
*/
|
||||
default void setPanose(byte[] panose) {
|
||||
throw new UnsupportedOperationException("FontInfo is read-only.");
|
||||
|
|
|
@ -814,7 +814,7 @@ public class DataFormatter {
|
|||
} else if (obj instanceof Double) {
|
||||
obj = (Double) obj / divider.doubleValue();
|
||||
} else {
|
||||
throw new UnsupportedOperationException();
|
||||
throw new UnsupportedOperationException("cannot scaleInput of type " + obj.getClass());
|
||||
}
|
||||
}
|
||||
return obj;
|
||||
|
|
Loading…
Reference in New Issue