Author: fanningpj
Date: Wed Dec 20 08:14:13 2023
New Revision: 1914791
URL: http://svn.apache.org/viewvc?rev=1914791&view=rev
Log:
try to javadoc more unsupported methods
Modified:
poi/trunk/poi/src/main/java/org/apache/poi/common/usermodel/fonts/FontFacet.java
poi/trunk/poi/src/main/java/org/apache/poi/common/usermodel/fonts/FontInfo.java
poi/trunk/poi/src/main/java/org/apache/poi/ss/usermodel/DataFormatter.java
Modified:
poi/trunk/poi/src/main/java/org/apache/poi/common/usermodel/fonts/FontFacet.java
URL:
http://svn.apache.org/viewvc/poi/trunk/poi/src/main/java/org/apache/poi/common/usermodel/fonts/FontFacet.java?rev=1914791&r1=1914790&r2=1914791&view=diff
==============================================================================
---
poi/trunk/poi/src/main/java/org/apache/poi/common/usermodel/fonts/FontFacet.java
(original)
+++
poi/trunk/poi/src/main/java/org/apache/poi/common/usermodel/fonts/FontFacet.java
Wed Dec 20 08:14:13 2023
@@ -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.");
Modified:
poi/trunk/poi/src/main/java/org/apache/poi/common/usermodel/fonts/FontInfo.java
URL:
http://svn.apache.org/viewvc/poi/trunk/poi/src/main/java/org/apache/poi/common/usermodel/fonts/FontInfo.java?rev=1914791&r1=1914790&r2=1914791&view=diff
==============================================================================
---
poi/trunk/poi/src/main/java/org/apache/poi/common/usermodel/fonts/FontInfo.java
(original)
+++
poi/trunk/poi/src/main/java/org/apache/poi/common/usermodel/fonts/FontInfo.java
Wed Dec 20 08:14:13 2023
@@ -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.");
Modified:
poi/trunk/poi/src/main/java/org/apache/poi/ss/usermodel/DataFormatter.java
URL:
http://svn.apache.org/viewvc/poi/trunk/poi/src/main/java/org/apache/poi/ss/usermodel/DataFormatter.java?rev=1914791&r1=1914790&r2=1914791&view=diff
==============================================================================
--- poi/trunk/poi/src/main/java/org/apache/poi/ss/usermodel/DataFormatter.java
(original)
+++ poi/trunk/poi/src/main/java/org/apache/poi/ss/usermodel/DataFormatter.java
Wed Dec 20 08:14:13 2023
@@ -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;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]