Changeset 4123


Ignore:
Timestamp:
2010-07-08 07:27:59 (3 years ago)
Author:
bruno
Message:

Removing throws clauses which became unnecessary by the removal of the field type loading when deserializing avro records.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • projects/lily/trunk/repository/impl/src/main/java/org/lilycms/repository/avro/AvroConverter.java

    r4122 r4123  
    3030    } 
    3131     
    32     public Record convert(AvroRecord avroRecord) throws FieldTypeNotFoundException, TypeException { 
     32    public Record convert(AvroRecord avroRecord) { 
    3333        Record record = repository.newRecord(); 
    3434        // Id 
     
    422422    } 
    423423 
    424     public RecordExistsException convert(AvroRecordExistsException avroException) 
    425             throws FieldTypeNotFoundException, TypeException { 
    426  
     424    public RecordExistsException convert(AvroRecordExistsException avroException) { 
    427425        RecordExistsException exception = new RecordExistsException(convert(avroException.record)); 
    428426        restoreCauses(avroException.remoteCauses, exception); 
     
    430428    } 
    431429 
    432     public RecordNotFoundException convert(AvroRecordNotFoundException avroException) 
    433             throws FieldTypeNotFoundException, TypeException { 
    434  
     430    public RecordNotFoundException convert(AvroRecordNotFoundException avroException) { 
    435431        RecordNotFoundException exception = new RecordNotFoundException(convert(avroException.record)); 
    436432        restoreCauses(avroException.remoteCauses, exception); 
     
    438434    } 
    439435 
    440     public VersionNotFoundException convert(AvroVersionNotFoundException avroException) 
    441             throws FieldTypeNotFoundException, TypeException { 
    442  
     436    public VersionNotFoundException convert(AvroVersionNotFoundException avroException) { 
    443437        VersionNotFoundException exception = new VersionNotFoundException(convert(avroException.record)); 
    444438        restoreCauses(avroException.remoteCauses, exception); 
     
    446440    } 
    447441 
    448     public InvalidRecordException convert(AvroInvalidRecordException avroException) 
    449             throws FieldTypeNotFoundException, TypeException { 
    450          
     442    public InvalidRecordException convert(AvroInvalidRecordException avroException) { 
    451443        InvalidRecordException exception = new InvalidRecordException(convert(avroException.record), convert(avroException.message)); 
    452444        restoreCauses(avroException.remoteCauses, exception); 
Note: See TracChangeset for help on using the changeset viewer.