Skip to content

Commit cc547ce

Browse files
authored
Merge pull request #274 from ozlerhakan/4.1.1
patch version 4.1.1
2 parents 9d5af92 + ca30938 commit cc547ce

File tree

4 files changed

+14
-13
lines changed

4 files changed

+14
-13
lines changed

README.adoc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
:toclevels: 2
33

44
= Poiji
5-
:version: v4.1.0
6-
:branch: 4.1.0
5+
:version: v4.1.1
6+
:branch: 4.1.1
77

88
image:https://github.com/ozlerhakan/poiji/actions/workflows/maven.yml/badge.svg["Build Status"] image:https://app.codacy.com/project/badge/Grade/64f7e2cb9e604807b62334a4cfc3952d["Codacy code quality",link="https://www.codacy.com/gh/ozlerhakan/poiji/dashboard?utm_source=github.com&utm_medium=referral&utm_content=ozlerhakan/poiji&utm_campaign=Badge_Grade"]
99
image:https://codecov.io/gh/ozlerhakan/poiji/branch/{branch}/graph/badge.svg?token=MN6V6xOWBq["Codecov",link="https://codecov.io/gh/ozlerhakan/poiji"] image:https://img.shields.io/badge/apache.poi-5.2.1-brightgreen.svg[] image:https://app.fossa.com/api/projects/git%2Bgithub.com%2Fozlerhakan%2Fpoiji.svg?type=shield["FOSSA Status",link="https://app.fossa.com/projects/git%2Bgithub.com%2Fozlerhakan%2Fpoiji?ref=badge_shield"]
@@ -25,7 +25,7 @@ In your Maven/Gradle project, first add the corresponding dependency:
2525
<dependency>
2626
<groupId>com.github.ozlerhakan</groupId>
2727
<artifactId>poiji</artifactId>
28-
<version>4.1.0</version>
28+
<version>4.1.1</version>
2929
</dependency>
3030
----
3131

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<groupId>com.github.ozlerhakan</groupId>
77
<artifactId>poiji</artifactId>
8-
<version>4.1.0</version>
8+
<version>4.1.1</version>
99
<packaging>jar</packaging>
1010

1111
<name>poiji</name>

src/main/java/com/poiji/bind/mapping/HSSFUnmarshaller.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,12 @@ <T> void processRowsToObjects(Sheet sheet, Class<T> type, Consumer<? super T> co
9999
errors.add(poijiRowException);
100100
}
101101
}
102-
if (!errors.isEmpty()) {
103-
List<PoijiRowSpecificException> allErrors = errors.stream()
104-
.flatMap((PoijiMultiRowException e) -> e.getErrors().stream())
105-
.collect(Collectors.toList());
106-
throw new PoijiMultiRowException("Problem(s) occurred while reading data", allErrors);
107-
}
102+
}
103+
if (!errors.isEmpty()) {
104+
List<PoijiRowSpecificException> allErrors = errors.stream()
105+
.flatMap((PoijiMultiRowException e) -> e.getErrors().stream())
106+
.collect(Collectors.toList());
107+
throw new PoijiMultiRowException("Problem(s) occurred while reading data", allErrors);
108108
}
109109
}
110110

src/main/java/com/poiji/util/ReflectUtil.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static <T> T newInstanceOf(Class<T> type) {
2020
T obj;
2121
try {
2222
Constructor<T> constructor = type.getDeclaredConstructor();
23-
if (!constructor.isAccessible()) {
23+
if (!constructor.canAccess(null)) {
2424
constructor.setAccessible(true);
2525
}
2626
obj = constructor.newInstance();
@@ -32,12 +32,13 @@ public static <T> T newInstanceOf(Class<T> type) {
3232
}
3333

3434
/**
35-
* Finds a particular annotation on a class and checks subtypes marked with ExcelCellRange recursively.
35+
* Finds a particular annotation on a class and checks subtypes marked with
36+
* ExcelCellRange recursively.
3637
* <p>
3738
* Recursively does not refer to super classes.
3839
*/
3940
static <T, A extends Annotation> Collection<A> findRecursivePoijiAnnotations(Class<T> typeToInspect,
40-
Class<A> annotationType) {
41+
Class<A> annotationType) {
4142
List<A> annotations = new ArrayList<>();
4243

4344
for (Field field : typeToInspect.getDeclaredFields()) {

0 commit comments

Comments
 (0)