@@ -111,21 +111,7 @@ public String toString() {
111111		return  internalSet .toString ();
112112	}
113113
114- 	/** Set to {@code false} and delete the whole block in 7.3.0 */ 
115- 	private  static  final  boolean 									TRANSITION_COMPILE_IMPLIES_RESOLVE 	= true ;
116- 	/** Only emit the warning once to avoid log spam. */ 
117- 	private  static  final  java .util .concurrent .atomic .AtomicBoolean 	WARNED 								= new  java .util .concurrent .atomic .AtomicBoolean (
118- 		false );
119- 
120- 	private  static  void  warnOnceCompileResolveBridge () {
121- 
122- 		if  (WARNED .compareAndSet (false , true )) {
123- 			org .slf4j .LoggerFactory .getLogger (Tags .class )
124- 				.warn ("Tags contain tag \" resolve\"  only – " 
125- 					+ "this still satisfies a request for \" compile\"  in 7.2.x " 
126- 					+ "but will NOT in 7.3. Add the tag \" compile\" ." );
127- 		}
128- 	}
114+ 
129115
130116	/** 
131117	 * Returns {@code true} if this entity should take part in <i>any</i> of the 
@@ -141,11 +127,6 @@ private static void warnOnceCompileResolveBridge() {
141127	 *    of all other rules (example 'nocompile'. 
142128	 * 3. **Positive tag match** – if the entity contains a tag that matches a 
143129	 *    requested glob, it is included. 
144- 	 * 4. **7.2 bridge** – while {@link #TRANSITION_COMPILE_IMPLIES_RESOLVE} is 
145- 	 *    {@code true}, a request for {@code "compile"} also accepts entities that 
146- 	 *    have {@code "resolve"} (and <i>no</i> {@code "noCompile"}). 
147- 	 *    The first use logs a deprecation warning; this block will be removed 
148- 	 *    in 7.3. 
149130	 * // @formatter:on 
150131	 * 
151132	 * @param tags (globs) 
@@ -167,29 +148,9 @@ public boolean includesAny(String... tags) {
167148
168149		for  (String  tagGlob  : tags ) {
169150
170- 			String  phase  = tagGlob ; // e.g. "compile" 
171- 			String  negativePhase  = "no"  + phase ; // "noCompile" 
172- 
173- 			/* 1. Explicit negative tag blocks this phase --------------- */ 
174- 			if  (matchesAny (new  Glob (negativePhase ))) {
175- 				continue ; // try next requested tag 
176- 			}
177- 
178- 			/* 2. Positive tag match ------------------------------------ */ 
179151			if  (matchesAny (new  Glob (tagGlob ))) {
180152				return  true ; // success 
181153			}
182- 
183- 			/* 3. Transitional bridge (compile ⇒ resolve) -------------- */ 
184- 			if  (TRANSITION_COMPILE_IMPLIES_RESOLVE  && "compile" .equalsIgnoreCase (phase )
185- 				&& matchesAny (new  Glob ("resolve" )) && !matchesAny (new  Glob ("noCompile" ))) { // negative 
186- 																							// still 
187- 																							// wins 
188- 
189- 				warnOnceCompileResolveBridge (); // log only first time 
190- 				return  true ;
191- 			}
192- 			// ↑↑↑ remove in 7.3 
193154		}
194155
195156		return  false ;
0 commit comments