Skip to content

Conversation

HarshaM0211
Copy link

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) {

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;

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
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
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
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