Browse Source
Simplify PersistenceProvider by removing PresenceDetector interface. Refine presence detection to make present field final. Add warning suppressions as we know that we duplicate code (similar code) and that ANTLR doesn't generate methods with nullable annotations. See #3170 Original pull request: #3176pull/3187/head
5 changed files with 13 additions and 34 deletions
@ -1,27 +0,0 @@
@@ -1,27 +0,0 @@
|
||||
/* |
||||
* Copyright 2023 the original author or authors. |
||||
* |
||||
* Licensed under the Apache License, Version 2.0 (the "License"); |
||||
* you may not use this file except in compliance with the License. |
||||
* You may obtain a copy of the License at |
||||
* |
||||
* https://www.apache.org/licenses/LICENSE-2.0
|
||||
* |
||||
* Unless required by applicable law or agreed to in writing, software |
||||
* distributed under the License is distributed on an "AS IS" BASIS, |
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||||
* See the License for the specific language governing permissions and |
||||
* limitations under the License. |
||||
|
||||
*/ |
||||
package org.springframework.data.jpa.provider; |
||||
|
||||
/** |
||||
* Define operations needed to detect the presence of a given JPA provider. |
||||
* |
||||
* @author Greg Turnquist |
||||
* @since 3.2 |
||||
*/ |
||||
interface PresenceDetector { |
||||
boolean isPresent(); |
||||
} |
||||
Loading…
Reference in new issue