mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-10-09 00:29:04 +00:00
Polishing
This commit is contained in:
+2
-2
@@ -247,7 +247,7 @@ public class LocalSessionFactoryBean extends HibernateExceptionTranslator
|
||||
}
|
||||
|
||||
/**
|
||||
* Set a Hibernate 5 {@link ImplicitNamingStrategy} for the SessionFactory.
|
||||
* Set a Hibernate {@link ImplicitNamingStrategy} for the SessionFactory.
|
||||
* @see Configuration#setImplicitNamingStrategy
|
||||
*/
|
||||
public void setImplicitNamingStrategy(ImplicitNamingStrategy implicitNamingStrategy) {
|
||||
@@ -255,7 +255,7 @@ public class LocalSessionFactoryBean extends HibernateExceptionTranslator
|
||||
}
|
||||
|
||||
/**
|
||||
* Set a Hibernate 5 {@link PhysicalNamingStrategy} for the SessionFactory.
|
||||
* Set a Hibernate {@link PhysicalNamingStrategy} for the SessionFactory.
|
||||
* @see Configuration#setPhysicalNamingStrategy
|
||||
*/
|
||||
public void setPhysicalNamingStrategy(PhysicalNamingStrategy physicalNamingStrategy) {
|
||||
|
||||
+1
-1
@@ -60,7 +60,7 @@ class ClassFileTransformerAdapter implements ClassFileTransformer {
|
||||
synchronized (this) {
|
||||
if (this.currentlyTransforming) {
|
||||
// Defensively back out when called from within the transform delegate below:
|
||||
// in particular, for the over-eager transformer implementation in Hibernate 5.
|
||||
// in particular, for the over-eager transformer implementation in Hibernate.
|
||||
return null;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -89,7 +89,7 @@ public abstract class AbstractJpaVendorAdapter implements JpaVendorAdapter {
|
||||
* <p><b>NOTE: Do not set this flag to 'true' while also setting JPA's
|
||||
* {@code jakarta.persistence.schema-generation.database.action} property.</b>
|
||||
* These two schema generation mechanisms - standard JPA versus provider-native -
|
||||
* are mutually exclusive, for example, with Hibernate 5.
|
||||
* are mutually exclusive, for example, with Hibernate.
|
||||
* @see org.springframework.orm.jpa.AbstractEntityManagerFactoryBean#setJpaProperties
|
||||
*/
|
||||
public void setGenerateDdl(boolean generateDdl) {
|
||||
|
||||
+1
-1
@@ -45,7 +45,7 @@ import org.springframework.orm.jpa.persistenceunit.SmartPersistenceUnitInfo;
|
||||
class SpringHibernateJpaPersistenceProvider extends HibernatePersistenceProvider {
|
||||
|
||||
@Override
|
||||
@SuppressWarnings({"rawtypes", "unchecked"}) // on Hibernate 6
|
||||
@SuppressWarnings({"rawtypes", "unchecked"})
|
||||
public EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitInfo info, Map properties) {
|
||||
final List<String> mergedClassesAndPackages = new ArrayList<>(info.getManagedClassNames());
|
||||
if (info instanceof SmartPersistenceUnitInfo smartInfo) {
|
||||
|
||||
@@ -57,7 +57,6 @@ public interface StreamingHttpOutputMessage extends HttpOutputMessage {
|
||||
public void writeTo(OutputStream outputStream) throws IOException {
|
||||
StreamUtils.copy(body, outputStream);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean repeatable() {
|
||||
return true;
|
||||
@@ -66,7 +65,6 @@ public interface StreamingHttpOutputMessage extends HttpOutputMessage {
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Contract to stream request body content to an {@link OutputStream}.
|
||||
* In some HTTP client libraries this is only possible indirectly through a
|
||||
|
||||
-2
@@ -109,14 +109,12 @@ public abstract class AbstractGenericHttpMessageConverter<T> extends AbstractHtt
|
||||
public OutputStream getBody() {
|
||||
return outputStream;
|
||||
}
|
||||
|
||||
@Override
|
||||
public HttpHeaders getHeaders() {
|
||||
return headers;
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean repeatable() {
|
||||
return supportsRepeatableWrites(t);
|
||||
|
||||
-1
@@ -222,7 +222,6 @@ public abstract class AbstractHttpMessageConverter<T> implements HttpMessageConv
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean repeatable() {
|
||||
return supportsRepeatableWrites(t);
|
||||
|
||||
-1
@@ -106,7 +106,6 @@ public abstract class AbstractSmartHttpMessageConverter<T> extends AbstractHttpM
|
||||
}
|
||||
}, hints);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean repeatable() {
|
||||
return supportsRepeatableWrites(t);
|
||||
|
||||
-1
@@ -229,7 +229,6 @@ public class BufferedImageHttpMessageConverter implements HttpMessageConverter<B
|
||||
public void writeTo(OutputStream outputStream) throws IOException {
|
||||
BufferedImageHttpMessageConverter.this.writeInternal(image, selectedContentType, outputStream);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean repeatable() {
|
||||
return true;
|
||||
|
||||
-1
@@ -493,7 +493,6 @@ public class FormHttpMessageConverter implements HttpMessageConverter<MultiValue
|
||||
FormHttpMessageConverter.this.writeParts(outputStream, parts, boundary);
|
||||
writeEnd(outputStream, boundary);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean repeatable() {
|
||||
return repeatable;
|
||||
|
||||
Reference in New Issue
Block a user