소스 검색

Remove awesome split + join, replace with boring replaceall.

pull/151/head
Greg Holmes 9 년 전
부모
커밋
8a8efb228b
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  1. 1
    5
      ui_swing/src/com/dmdirc/addons/ui_swing/dialogs/about/LicencesPanel.java

+ 1
- 5
ui_swing/src/com/dmdirc/addons/ui_swing/dialogs/about/LicencesPanel.java 파일 보기

@@ -30,9 +30,6 @@ import com.dmdirc.interfaces.ui.AboutDialogModel;
30 30
 import com.dmdirc.ui.core.about.Licence;
31 31
 import com.dmdirc.ui.core.about.LicensedComponent;
32 32
 
33
-import com.google.common.base.Joiner;
34
-import com.google.common.base.Splitter;
35
-
36 33
 import java.awt.Font;
37 34
 import java.awt.Rectangle;
38 35
 
@@ -145,8 +142,7 @@ public class LicencesPanel extends JPanel implements TreeSelectionListener {
145 142
             licence.setText(
146 143
                     "<h3 style='margin: 3px; padding: 0px 0px 5px 0px;'>"
147 144
                             + ((Licence) userObject).getName() + "</h3>"
148
-                            + Joiner.on("<br>").join(
149
-                            Splitter.on('\n').split(((Licence) userObject).getBody())));
145
+                            + ((Licence) userObject).getBody().replaceAll("\\n", "<br>"));
150 146
         } else if (userObject instanceof LicensedComponent) {
151 147
             final LicensedComponent lc = (LicensedComponent) userObject;
152 148
             licence.setText("<b>Name:</b> "

Loading…
취소
저장