-
Notifications
You must be signed in to change notification settings - Fork 2
Update apache-poi from 3.11 to 3.17 #15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
SonarQube analysis found issues:



Including the following issue(s) which could not be reported in line:
| } | ||
|
|
||
| protected void read(InputStream is) throws IOException, XmlException { | ||
| XmlObject root = XmlObject.Factory.parse(new EvilUnclosedBRFixingInputStream(is)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

| } | ||
|
|
||
| /* | ||
| public void setZoom(int numerator, int denominator) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

| // FIXME | ||
| public Comment getCellComment(int row, int column) { | ||
| return sheet.getCellComment(new CellAddress(row, column)); | ||
| //return sheet.getCellComment(row, column); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

| rootCursor.dispose(); | ||
|
|
||
| // google "POIXMLDocumentPart DEFAULT_XML_OPTIONS" | ||
| XmlOptions DEFAULT_XML_OPTIONS = new XmlOptions(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually it should be static final variable in this class
| return 0; | ||
| return false; | ||
| } | ||
| if("bold".equals(fontWeight)) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

| return true; | ||
| } | ||
| if( cellStyle.getFillPattern() == CellStyle.NO_FILL ) { | ||
| if( cellStyle.getFillPattern() == FillPatternType.NO_FILL.getCode() ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

|
|
||
| XSSFColor colour = ((XSSFFont)font).getXSSFColor(); | ||
| int fgRgb[] = rgbOnly( colour.getARgb() ); | ||
| int fgRgb[] = rgbOnly( colour.getARGB() ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

| return sheet.getDrawingPatriarch(); | ||
| } | ||
|
|
||
| // FIXME |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

| attrString.addAttribute(TextAttribute.SIZE, (float)font.getFontHeightInPoints(), startIdx, endIdx); | ||
| if (font.getBoldweight() == Font.BOLDWEIGHT_BOLD) attrString.addAttribute(TextAttribute.WEIGHT, TextAttribute.WEIGHT_BOLD, startIdx, endIdx); | ||
| if (font.getBold()) attrString.addAttribute(TextAttribute.WEIGHT, TextAttribute.WEIGHT_BOLD, startIdx, endIdx); | ||
| if (font.getItalic() ) attrString.addAttribute(TextAttribute.POSTURE, TextAttribute.POSTURE_OBLIQUE, startIdx, endIdx); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

| return true; | ||
| } | ||
| if( cellStyle.getFillPattern() == CellStyle.NO_FILL ) { | ||
| if( cellStyle.getFillPattern() == FillPatternType.NO_FILL.getCode() ) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.

| target/poi-ooxml-3.17.jar, | ||
| target/poi-ooxml-schemas-3.17.jar, | ||
| target/curvesapi-1.04.jar, | ||
| target/commons-collections4-4.1.jar |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would move collections to separate bundle, so it can be reused without apache poi.
| org.apache.commons.collections4.splitmap, | ||
| org.apache.commons.collections4.trie, | ||
| org.apache.commons.collections4.trie.analyzer, | ||
| com.graphbuilder.curve, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
no need to expose graphbuilder packages
| <groupId>org.apache.poi</groupId> | ||
| <artifactId>poi</artifactId> | ||
| <version>3.11</version> | ||
| <version>3.17</version> <!-- latest 4.0.0 --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
comments about latest are very relative. today it is latest, tomorrow it is not true anymore
No description provided.