File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed 
android/guava-tests/test/com/google/common/net 
guava-tests/test/com/google/common/net Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change 4646import  com .google .common .testing .NullPointerTester ;
4747import  java .lang .reflect .Field ;
4848import  java .nio .charset .Charset ;
49- import  java .nio .charset .IllegalCharsetNameException ;
5049import  java .nio .charset .UnsupportedCharsetException ;
5150import  java .util .Arrays ;
5251import  junit .framework .TestCase ;
@@ -537,7 +536,7 @@ public void testGetCharset_illegalCharset() {
537536    try  {
538537      mediaType .charset ();
539538      fail ();
540-     } catch  (IllegalCharsetNameException  expected ) {
539+     } catch  (IllegalArgumentException  expected ) {
541540    }
542541  }
543542
Original file line number Diff line number Diff line change 4646import  com .google .common .testing .NullPointerTester ;
4747import  java .lang .reflect .Field ;
4848import  java .nio .charset .Charset ;
49- import  java .nio .charset .IllegalCharsetNameException ;
5049import  java .nio .charset .UnsupportedCharsetException ;
5150import  java .util .Arrays ;
5251import  junit .framework .TestCase ;
@@ -537,7 +536,7 @@ public void testGetCharset_illegalCharset() {
537536    try  {
538537      mediaType .charset ();
539538      fail ();
540-     } catch  (IllegalCharsetNameException  expected ) {
539+     } catch  (IllegalArgumentException  expected ) {
541540    }
542541  }
543542
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments