Skip to content

Ordering cols#49

Closed
HarshaM0211 wants to merge 4 commits intomillij:developfrom
HarshaM0211:Ordering_cols
Closed

Ordering cols#49
HarshaM0211 wants to merge 4 commits intomillij:developfrom
HarshaM0211:Ordering_cols

Conversation

@HarshaM0211
Copy link
Copy Markdown

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.


public static Map<Integer,String> getColumnIndexToPropertyMap(Class<?> beanType) {
// Sanity checks
if (beanType == null) {
Copy link
Copy Markdown

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;

Copy link
Copy Markdown

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

Copy link
Copy Markdown
Owner

@millij millij left a 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.

Copy link
Copy Markdown
Owner

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.

@HarshaM0211
Copy link
Copy Markdown
Author

Modified the code and PR. Raised a new PR #53 (better readable) with same content.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants