Skip to content

Conversation

@mohitsatr
Copy link

refactors #9276

Changes:

  1. Convert both classes from Java to Kotlin.
  2. Make static methods toString(), pack(), and hostname property to return an empty string (instead of null) when addresses are not provided to avoid nullable type (String -> String?) conflicts in other places.
  3. Add tests for the above.
  4. Refactor AddressTest to use Assertk and make tests follow the AAA pattern

* http://code.google.com/p/k9mail/issues/detail?id=3814
*/
@Test
public void parse_withMissingEmail__shouldSetPersonal() {
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this name correct? Shouldn't it be shouldNotSetPersonal ?

@wmontwe wmontwe changed the title Convert Address and AddressTest class from java to kotlin refactor: convert Address and AddressTest class from java to kotlin Feb 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants