mirror of
				https://github.com/JetBrains/intellij-platform-plugin-template.git
				synced 2025-06-13 13:04:09 +00:00 
			
		
		
		
	Fix MyBundle.messagePointer to return Supplier<@Nls String> instead of String (#71)
				
					
				
			This commit is contained in:
		
							parent
							
								
									2b3d7ea6d6
								
							
						
					
					
						commit
						692f21953e
					
				| @ -11,11 +11,11 @@ object MyBundle : AbstractBundle(BUNDLE) { | |||||||
| 
 | 
 | ||||||
|     @Suppress("SpreadOperator") |     @Suppress("SpreadOperator") | ||||||
|     @JvmStatic |     @JvmStatic | ||||||
|     fun message(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any) = getMessage(key, *params) |     fun message(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any) = | ||||||
|  |         getMessage(key, *params) | ||||||
| 
 | 
 | ||||||
|     @Suppress("SpreadOperator") |     @Suppress("SpreadOperator") | ||||||
|     @JvmStatic |     @JvmStatic | ||||||
|     fun messagePointer(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any) = run { |     fun messagePointer(@PropertyKey(resourceBundle = BUNDLE) key: String, vararg params: Any) = | ||||||
|         message(key, *params) |         getLazyMessage(key, *params) | ||||||
|     } |  | ||||||
| } | } | ||||||
|  | |||||||
		Loading…
	
		Reference in New Issue
	
	Block a user