X Tutup
Skip to content

Commit 9ddfb37

Browse files
committed
polishing
1 parent 6fc6a9e commit 9ddfb37

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

org.springframework.orm/src/main/java/org/springframework/orm/jpa/JpaTransactionManager.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2009 the original author or authors.
2+
* Copyright 2002-2011 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -57,7 +57,7 @@
5757
* supporting this transaction management mechanism.
5858
*
5959
* <p>This transaction manager is appropriate for applications that use a single
60-
* JPA EntityManagerFactory for transactional data access. JTA (usually through
60+
* JPA EntityManagerFactory for transactional data access. JTA (usually through
6161
* {@link org.springframework.transaction.jta.JtaTransactionManager}) is necessary
6262
* for accessing multiple transactional resources within the same transaction.
6363
* Note that you need to configure your JPA provider accordingly in order to make
@@ -184,7 +184,7 @@ public Map<String, Object> getJpaPropertyMap() {
184184

185185
/**
186186
* Set the JDBC DataSource that this instance should manage transactions for.
187-
* The DataSource should match the one used by the JPA EntityManagerFactory:
187+
* The DataSource should match the one used by the JPA EntityManagerFactory:
188188
* for example, you could specify the same JNDI DataSource for both.
189189
* <p>If the EntityManagerFactory uses a known DataSource as connection factory,
190190
* the DataSource will be autodetected: You can still explictly specify the

org.springframework.web/src/main/java/org/springframework/web/multipart/commons/CommonsFileUploadSupport.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright 2002-2010 the original author or authors.
2+
* Copyright 2002-2011 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -291,7 +291,7 @@ private String determineEncoding(String contentTypeHeader, String defaultEncodin
291291
}
292292
MediaType contentType = MediaType.parseMediaType(contentTypeHeader);
293293
Charset charset = contentType.getCharSet();
294-
return charset != null ? charset.name() : defaultEncoding;
294+
return (charset != null ? charset.name() : defaultEncoding);
295295
}
296296

297297

0 commit comments

Comments
 (0)
X Tutup