Skip to content

Commit

Permalink
Openstud: First and last name are no longer upper case
Browse files Browse the repository at this point in the history
  • Loading branch information
leosarra committed Sep 14, 2018
1 parent e72eb39 commit a45725a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ OpenStud Driver can be easily added to your existing project through Maven or Gr
<dependency>
<groupId>com.github.LithiumSR</groupId>
<artifactId>openstud_driver</artifactId>
<version>0.10</version>
<version>0.10.1</version>
</dependency>
```

Expand All @@ -51,7 +51,7 @@ allprojects {
2) Add the dependency
```
dependencies {
implementation 'com.github.LithiumSR:openstud_driver:0.10'
implementation 'com.github.LithiumSR:openstud_driver:0.10.1'
}
```

Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>lithium.openstud.driver</groupId>
<artifactId>openstud-driver</artifactId>
<version>0.10</version>
<version>0.10.1</version>

<name>openstud-driver</name>

Expand Down
5 changes: 3 additions & 2 deletions src/main/java/lithium/openstud/driver/core/Openstud.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

import lithium.openstud.driver.exceptions.*;
import okhttp3.*;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.lang3.math.NumberUtils;
import org.apache.commons.lang3.tuple.ImmutablePair;
import org.apache.commons.lang3.tuple.Pair;
Expand Down Expand Up @@ -296,10 +297,10 @@ private Student _getInfoStudent() throws OpenstudConnectionException, OpenstudIn
st.setCF(response.getString("codiceFiscale"));
break;
case "cognome":
st.setLastName(response.getString("cognome"));
st.setLastName(StringUtils.capitalize(response.getString("cognome").toLowerCase()));
break;
case "nome":
st.setFirstName(response.getString("nome"));
st.setFirstName(StringUtils.capitalize(response.getString("nome").toLowerCase()));
break;
case "dataDiNascita":
String dateBirth = response.getString("dataDiNascita");
Expand Down

0 comments on commit a45725a

Please sign in to comment.