Override all flag methods

pull/162/head
M66B 5 years ago
parent 2a0ead6c59
commit c38330b35d

@ -58,6 +58,14 @@ public class MimeMessageEx extends MimeMessage {
}
}
@Override
public synchronized Flags getFlags() throws MessagingException {
if (original == null)
return super.getFlags();
else
return original.getFlags();
}
@Override
public synchronized boolean isSet(Flags.Flag flag) throws MessagingException {
if (original == null)
@ -65,4 +73,20 @@ public class MimeMessageEx extends MimeMessage {
else
return original.isSet(flag);
}
@Override
public void setFlag(Flags.Flag flag, boolean set) throws MessagingException {
if (original == null)
super.setFlag(flag, set);
else
original.setFlag(flag, set);
}
@Override
public synchronized void setFlags(Flags flag, boolean set) throws MessagingException {
if (original == null)
super.setFlags(flag, set);
else
original.setFlags(flag, set);
}
}

Loading…
Cancel
Save