[Tex/LaTex] After \centering what is the best way to return to justified

errorshorizontal alignmentlistsragged2e

Here is an over simplified example. My problem is the \justify and/or \clearpage creates an error on the first \item line saying "possible missing \item." I've used a similar sequence of code above this section without error; however, it was a table, text, another table. I am wondering if there is a more efficient way of returning text after my \centering table or figure to be justified and look like the rest of my document. Also is the error occurring due to another package or is it the enumerate?

\documentclass[draft]{article}
\usepackage[showframe]{geometry}
\usepackage{ragged2e}
\usepackage{adjustbox}
\usepackage{caption}
\begin{document}
\paragraph{Paragraph 1}
Filler text is here. \\ 

\centering
\begin{adjustbox}{max width=\textwidth}
\begin{tabular}{|c|c|}
\hline
Filler & Whatever \\
\hline
\end{tabular} 
\end{adjustbox}
\captionof{figure}{Filling for Figure}

\justify
\paragraph{Paragraph 2}
Filler Text


\centering
\captionof{table}{Table 1}
\begin{adjustbox}{max width=\textwidth}
\begin{tabular}{|c|c|}
\hline 
x & 1  \\ 
\hline
y & 3 \\
\hline
\end{tabular} 
\end{adjustbox}

\clearpage %Adding this errors out
\justify %Or this

\paragraph{Paragraph 3} 
Filler text to show up.
\begin{enumerate}
\item Function
\item Filler Text
\end{enumerate}
\end{document}

Edit 1: Made the document include proper packages.

Edit 2: The document now gives an error when including the 2 lines with comments. My overall goal is to have all three paragraphs, and the enumerated list justified as a 'normal' document does. The 2 tables and their captions should be centered as they are.

Best Answer

As has already been pointed out in comments, you should use \justifying, not \justify (that commands exists only because of a side-effect of how LaTeX implements the justify environment).