---
title: "Discussion on \"Stop Writing if-checks: Refinement Types in Java 8+\" | Hashnode"
description: "Discussion on \"Stop Writing if-checks: Refinement Types in Java 8+\". The Code That Lives in Every Java Codebase\nEvery Java developer has written this code. You have written this code. Probably this week. A method starts with five lines of null checks, blank checks, and range checks before a single line of business log..."
url: "https://hashnode.com/posts/stop-writing-if-checks-refinement-types-java/69b91e65125e4462c46db6bb"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Stop Writing if-checks: Refinement Types in Java 8+](https://junggikim.hashnode.dev/stop-writing-if-checks-refinement-types-java?utm_source=hashnode&utm_medium=feed)

The Code That Lives in Every Java Codebase Every Java developer has written this code. You have written this code. Probably this week. A method starts with five lines of null checks, blank checks, and range checks before a single line of business log...

Mar 17 · 9 min read · junggikim.hashnode.dev  
Read the article

-   [#java](https://hashnode.com/tag/java)
-   [#type-safety](https://hashnode.com/tag/type-safety)
-   [#validation](https://hashnode.com/tag/validation)

## Written by

[jg k](https://hashnode.com/@junggikim)

@junggikim

  
[View profile](https://hashnode.com/@junggikim)

Java/Kotlin open source developer. Creator of java-refined.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
