-
Notifications
You must be signed in to change notification settings - Fork 31
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
Ordering cols #49
Ordering cols #49
Conversation
|
||
public static Map<Integer,String> getColumnIndexToPropertyMap(Class<?> beanType) { | ||
// Sanity checks | ||
if (beanType == null) { |
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.
[pp] Instead of check with == we prefer Objects.isNull
if (Objects.isNull(beanType){ //logic }
package io.github.millij.bean; | ||
|
||
import io.github.millij.poi.ss.model.annotations.SheetColumn; | ||
|
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.
Please annotate class with @Sheet
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.
Please use spaces instead of tabs.
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.
Replace the Tabs with Spaces in this file please.
Modified the code and PR. Raised a new PR #53 (better readable) with same content. |
Enhanced to specify the order of the columns at the annotation level.
User should specify the index (starts form 1) value of the column at annotations.