1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
package com.vci.ubcs.starter.web.util;
 
//
// Source code recreated from a .class file by IntelliJ IDEA
// (powered by FernFlower decompiler)
//
 
//package com.vci.starter.web.util;
 
import org.springframework.context.MessageSource;
import org.springframework.context.i18n.LocaleContextHolder;
import org.springframework.stereotype.Component;
 
@Component
public class MessageUtils {
    private static MessageSource messageSource;
 
    public MessageUtils(MessageSource messageSource) {
        MessageUtils.messageSource = messageSource;
    }
 
    public static String get(String msgKey) {
        try {
            return messageSource.getMessage(msgKey, (Object[])null, LocaleContextHolder.getLocale());
        } catch (Throwable var2) {
            return msgKey;
        }
    }
 
    public static String get(String msgKey, Object[] objects) {
        try {
            return messageSource.getMessage(msgKey, objects, LocaleContextHolder.getLocale());
        } catch (Throwable var3) {
            return msgKey;
        }
    }
}